home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / U.S. System⁄HyperCard / HyperCard—US 1.2.5 / HyperCard Ideas-US 1.2.5 / Idea Stacks / Stack Ideas / background_29658.txt < prev    next >
Encoding:
Text File  |  1988-11-07  |  9.1 KB  |  439 lines

  1. -- background: 29658 from stack: in
  2. -- bmap block id: 7069
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. -- These background scripts handle check-boxes on a background by
  8. -- storing the settings of the check-boxes in a hidden field called
  9. -- "checks" and setting and resetting them on open and close card.
  10. --
  11. on newCard
  12.   repeat with i=1 to the number of background buttons
  13.     put "true" & return after field "checks"
  14.   end repeat
  15. end newCard
  16.  
  17. on openCard
  18.   set cursor to 4 -- wristwatch
  19.   repeat with i=1 to the number of background buttons
  20.     set the hilite of background button i to (line i of field "checks" is true)
  21.   end repeat
  22.   set cursor to 1 -- browse tool
  23. end openCard
  24.  
  25. on closeCard
  26.   set cursor to 4 -- wristwatch
  27.   repeat with i=1 to the number of background buttons
  28.     get hilite of background button i
  29.     put it into line i of field "checks"
  30.   end repeat
  31.   set cursor to 1 -- browse tool
  32. end closeCard
  33.  
  34. on newStack
  35.   newCard
  36. end newStack
  37.  
  38.  
  39. on openBackground
  40.   push recent card
  41. end openBackground
  42.  
  43.  
  44. -- part 1 (button)
  45. -- low flags: 00
  46. -- high flags: 0000
  47. -- rect: left=425 top=187 right=218 bottom=468
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 10610 / 10610
  50. -- text alignment: 1
  51. -- font id: 0
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: dial phone
  56. ----- HyperTalk script -----
  57. on mouseUp
  58.   get the selection
  59.   if it is empty then get the message
  60.   if it is empty then ask "Dial what number?"
  61.   if it is not empty then
  62.     push this card
  63.     visual effect zoom open
  64.     go to stack "Phone"
  65.     dial it
  66.     pop card
  67.   end if
  68. end mouseUp
  69.  
  70.  
  71.  
  72. -- part 4 (field)
  73. -- low flags: 00
  74. -- high flags: 4000
  75. -- rect: left=53 top=90 right=110 bottom=317
  76. -- title width / last selected line: 0
  77. -- icon id / first selected line: 0 / 0
  78. -- text alignment: 0
  79. -- font id: 3
  80. -- text size: 14
  81. -- style flags: 0
  82. -- line height: 18
  83. -- part name: 
  84.  
  85.  
  86. -- part 5 (field)
  87. -- low flags: 00
  88. -- high flags: 4000
  89. -- rect: left=117 top=121 right=141 bottom=317
  90. -- title width / last selected line: 0
  91. -- icon id / first selected line: 0 / 0
  92. -- text alignment: 0
  93. -- font id: 3
  94. -- text size: 14
  95. -- style flags: 0
  96. -- line height: 18
  97. -- part name: 
  98.  
  99.  
  100. -- part 6 (field)
  101. -- low flags: 00
  102. -- high flags: 4000
  103. -- rect: left=82 top=150 right=170 bottom=317
  104. -- title width / last selected line: 0
  105. -- icon id / first selected line: 0 / 0
  106. -- text alignment: 0
  107. -- font id: 3
  108. -- text size: 14
  109. -- style flags: 0
  110. -- line height: 18
  111. -- part name: 
  112.  
  113.  
  114. -- part 7 (field)
  115. -- low flags: 00
  116. -- high flags: 4000
  117. -- rect: left=85 top=172 right=192 bottom=317
  118. -- title width / last selected line: 0
  119. -- icon id / first selected line: 0 / 0
  120. -- text alignment: 0
  121. -- font id: 3
  122. -- text size: 14
  123. -- style flags: 0
  124. -- line height: 18
  125. -- part name: Phone Number
  126.  
  127.  
  128. -- part 8 (field)
  129. -- low flags: 00
  130. -- high flags: 4000
  131. -- rect: left=78 top=205 right=296 bottom=318
  132. -- title width / last selected line: 0
  133. -- icon id / first selected line: 0 / 0
  134. -- text alignment: 0
  135. -- font id: 3
  136. -- text size: 14
  137. -- style flags: 0
  138. -- line height: 18
  139. -- part name: 
  140.  
  141.  
  142. -- part 9 (field)
  143. -- low flags: 00
  144. -- high flags: 4000
  145. -- rect: left=78 top=300 right=320 bottom=318
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 0 / 0
  148. -- text alignment: 0
  149. -- font id: 3
  150. -- text size: 14
  151. -- style flags: 0
  152. -- line height: 18
  153. -- part name: 
  154.  
  155.  
  156. -- part 10 (field)
  157. -- low flags: 00
  158. -- high flags: 4000
  159. -- rect: left=371 top=60 right=80 bottom=475
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 0 / 0
  162. -- text alignment: 0
  163. -- font id: 3
  164. -- text size: 14
  165. -- style flags: 0
  166. -- line height: 18
  167. -- part name: 
  168.  
  169.  
  170. -- part 11 (field)
  171. -- low flags: 00
  172. -- high flags: 4000
  173. -- rect: left=371 top=88 right=108 bottom=476
  174. -- title width / last selected line: 0
  175. -- icon id / first selected line: 0 / 0
  176. -- text alignment: 0
  177. -- font id: 3
  178. -- text size: 14
  179. -- style flags: 0
  180. -- line height: 18
  181. -- part name: 
  182.  
  183.  
  184. -- part 25 (button)
  185. -- low flags: 00
  186. -- high flags: 0000
  187. -- rect: left=428 top=30 right=57 bottom=464
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 15972 / 15972
  190. -- text alignment: 1
  191. -- font id: 0
  192. -- text size: 12
  193. -- style flags: 0
  194. -- line height: 16
  195. -- part name: go to calendar
  196. ----- HyperTalk script -----
  197. on mouseUp
  198.   get the seconds
  199.   convert it to dateItems
  200.   put ((item 1 of it) - 1987) *2 into whichSix
  201.   if item 2 of it > 6 then add 1 to whichSix
  202.   visual effect zoom open
  203.   if whichSix < 1 then go card 1 of stack "Datebook"
  204.   else if whichSix > 5 then go card 5 of stack "Datebook"
  205.   else
  206.     go to card whichSix of stack "Datebook"
  207.     send "bracketWeek" && the seconds to this card
  208.   end if
  209. end mouseUp
  210.  
  211.  
  212.  
  213. -- part 26 (button)
  214. -- low flags: 00
  215. -- high flags: 0000
  216. -- rect: left=372 top=307 right=332 bottom=399
  217. -- title width / last selected line: 0
  218. -- icon id / first selected line: 15420 / 15420
  219. -- text alignment: 1
  220. -- font id: 0
  221. -- text size: 12
  222. -- style flags: 0
  223. -- line height: 16
  224. -- part name: Prev
  225. ----- HyperTalk script -----
  226. on mouseUp
  227.   visual effect wipe right
  228.   go to previous card
  229. end mouseUp
  230.  
  231.  
  232.  
  233. -- part 27 (button)
  234. -- low flags: 00
  235. -- high flags: 0000
  236. -- rect: left=398 top=307 right=332 bottom=425
  237. -- title width / last selected line: 0
  238. -- icon id / first selected line: 16560 / 16560
  239. -- text alignment: 1
  240. -- font id: 0
  241. -- text size: 12
  242. -- style flags: 0
  243. -- line height: 16
  244. -- part name: Next
  245. ----- HyperTalk script -----
  246. on mouseUp
  247.   visual effect wipe left
  248.   go to next card
  249. end mouseUp
  250.  
  251.  
  252.  
  253. -- part 28 (button)
  254. -- low flags: 00
  255. -- high flags: 0000
  256. -- rect: left=391 top=29 right=55 bottom=427
  257. -- title width / last selected line: 0
  258. -- icon id / first selected line: 3430 / 3430
  259. -- text alignment: 1
  260. -- font id: 0
  261. -- text size: 12
  262. -- style flags: 0
  263. -- line height: 16
  264. -- part name: Address
  265. ----- HyperTalk script -----
  266. on mouseUp
  267.   get the selection
  268.   visual effect zoom open
  269.   go to "Address"
  270.   if it is not empty then find it
  271. end mouseUp
  272.  
  273.  
  274.  
  275. -- part 29 (button)
  276. -- low flags: 00
  277. -- high flags: 6005
  278. -- rect: left=336 top=119 right=141 bottom=485
  279. -- title width / last selected line: 0
  280. -- icon id / first selected line: 0 / 0
  281. -- text alignment: 1
  282. -- font id: 0
  283. -- text size: 12
  284. -- style flags: 0
  285. -- line height: 16
  286. -- part name: 
  287.  
  288.  
  289. -- part 39 (button)
  290. -- low flags: 00
  291. -- high flags: 0000
  292. -- rect: left=423 top=305 right=333 bottom=460
  293. -- title width / last selected line: 0
  294. -- icon id / first selected line: 6720 / 6720
  295. -- text alignment: 1
  296. -- font id: 0
  297. -- text size: 12
  298. -- style flags: 0
  299. -- line height: 16
  300. -- part name: Return
  301. ----- HyperTalk script -----
  302. on mouseUp
  303.   visual effect iris close
  304.   pop card
  305. end mouseUp
  306.  
  307.  
  308.  
  309. -- part 40 (button)
  310. -- low flags: 00
  311. -- high flags: 2005
  312. -- rect: left=336 top=143 right=165 bottom=485
  313. -- title width / last selected line: 0
  314. -- icon id / first selected line: 0 / 0
  315. -- text alignment: 1
  316. -- font id: 0
  317. -- text size: 12
  318. -- style flags: 0
  319. -- line height: 16
  320. -- part name: 
  321.  
  322.  
  323. -- part 41 (button)
  324. -- low flags: 00
  325. -- high flags: 2005
  326. -- rect: left=336 top=167 right=189 bottom=485
  327. -- title width / last selected line: 0
  328. -- icon id / first selected line: 0 / 0
  329. -- text alignment: 1
  330. -- font id: 0
  331. -- text size: 12
  332. -- style flags: 0
  333. -- line height: 16
  334. -- part name: 
  335.  
  336.  
  337. -- part 42 (button)
  338. -- low flags: 00
  339. -- high flags: 2005
  340. -- rect: left=336 top=191 right=213 bottom=427
  341. -- title width / last selected line: 0
  342. -- icon id / first selected line: 0 / 0
  343. -- text alignment: 1
  344. -- font id: 0
  345. -- text size: 12
  346. -- style flags: 0
  347. -- line height: 16
  348. -- part name: 
  349.  
  350.  
  351. -- part 43 (button)
  352. -- low flags: 00
  353. -- high flags: 2005
  354. -- rect: left=336 top=215 right=237 bottom=485
  355. -- title width / last selected line: 0
  356. -- icon id / first selected line: 0 / 0
  357. -- text alignment: 1
  358. -- font id: 0
  359. -- text size: 12
  360. -- style flags: 0
  361. -- line height: 16
  362. -- part name: 
  363.  
  364.  
  365. -- part 44 (button)
  366. -- low flags: 00
  367. -- high flags: 2005
  368. -- rect: left=336 top=239 right=261 bottom=485
  369. -- title width / last selected line: 0
  370. -- icon id / first selected line: 0 / 0
  371. -- text alignment: 1
  372. -- font id: 0
  373. -- text size: 12
  374. -- style flags: 0
  375. -- line height: 16
  376. -- part name: 
  377.  
  378.  
  379. -- part 45 (button)
  380. -- low flags: 00
  381. -- high flags: 2005
  382. -- rect: left=336 top=264 right=286 bottom=485
  383. -- title width / last selected line: 0
  384. -- icon id / first selected line: 0 / 0
  385. -- text alignment: 1
  386. -- font id: 0
  387. -- text size: 12
  388. -- style flags: 0
  389. -- line height: 16
  390. -- part name: 
  391.  
  392.  
  393. -- part 46 (button)
  394. -- low flags: 00
  395. -- high flags: 2005
  396. -- rect: left=336 top=288 right=310 bottom=485
  397. -- title width / last selected line: 0
  398. -- icon id / first selected line: 0 / 0
  399. -- text alignment: 1
  400. -- font id: 0
  401. -- text size: 12
  402. -- style flags: 0
  403. -- line height: 16
  404. -- part name: 
  405.  
  406.  
  407. -- part 47 (button)
  408. -- low flags: 00
  409. -- high flags: 0000
  410. -- rect: left=464 top=29 right=58 bottom=496
  411. -- title width / last selected line: 0
  412. -- icon id / first selected line: 21700 / 21700
  413. -- text alignment: 1
  414. -- font id: 0
  415. -- text size: 12
  416. -- style flags: 0
  417. -- line height: 16
  418. -- part name: Home
  419. ----- HyperTalk script -----
  420. on mouseUp
  421.   visual effect iris open
  422.   go Home
  423. end mouseUp
  424.  
  425.  
  426.  
  427. -- part 48 (field)
  428. -- low flags: 80
  429. -- high flags: 0000
  430. -- rect: left=477 top=52 right=329 bottom=512
  431. -- title width / last selected line: 0
  432. -- icon id / first selected line: 0 / 0
  433. -- text alignment: 0
  434. -- font id: 3
  435. -- text size: 9
  436. -- style flags: 0
  437. -- line height: 10
  438. -- part name: Checks
  439.